package com.itheima.homework.Text6;
/*
张三老师...23
基础班老师讲JavaSE
李四老师...24
就业班老师讲JavaEE
 */
public class Text {
    public static void main(String[] args) {
        BaseTeach baseTeach = new BaseTeach("张三老师",23);
        System.out.println(baseTeach.getName()+"..."+baseTeach.getAge());
        baseTeach.teach();
        WorkTeach workTeach = new WorkTeach("李四老师",24);
        System.out.println(workTeach.getName()+"..."+workTeach.getAge());
        workTeach.teach();
    }
}
